package com.jikangjun.disk.quoteinfo.service;

import com.jikangjun.disk.mybatis.flexigrid.PagingEntity;
import com.jikangjun.disk.mybatis.flexigrid.TblResponseEntity;
import com.jikangjun.disk.quoteinfo.entity.SearchReceivedShareEntity;
import com.jikangjun.disk.quoteinfo.entity.ReceivedShareEntity;

/**
 * 收到分享服务接口
 */
public interface QuoteinfoService {
    
    /**
     * 分页查询收到分享记录
     */
    TblResponseEntity<ReceivedShareEntity> queryReceivedShareListByPage(SearchReceivedShareEntity entity, PagingEntity paging);
    
    /**
     * 根据分享ID查询收到分享信息
     */
    ReceivedShareEntity queryReceivedShareById(String shareId);
    
    /**
     * 接受分享
     */
    void acceptShare(String shareId);
    
    /**
     * 批量接受分享
     */
    void acceptShareBatch(String[] shareIds);
    
    /**
     * 拒绝分享
     */
    void rejectShare(String shareId);
    
    /**
     * 批量拒绝分享
     */
    void rejectShareBatch(String[] shareIds);
    
    /**
     * 更新查看次数
     */
    void updateViewCount(String shareId);
} 